package com.xxx.orderservice.service.impl;

import com.xxx.orderservice.pojo.entity.Order;
import com.xxx.orderservice.mapper.OrderMapper;
import com.xxx.orderservice.service.OrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guwq
 * @since 2025-05-22
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public Order getByOrderNo(String orderNo) {
        return this.lambdaQuery().eq(Order::getOrderNo, orderNo).one();
    }
}
